<div id="results">
{foreach from=$entries key=question item=entry}
    <h3>{$question}</h3>
    <ul>
        {foreach from=$entry key=answer item=right}
            <li {if not $right}class="wrong"{/if}>{if $right}{"RIGHT"|translate} &nbsp;&nbsp;&nbsp;{else}{"WRONG"|translate}{/if} - {$answer}</li>
        {/foreach}
    </ul>
{/foreach}

<h2 {if $rate < 50}class="bad"{/if}>{"TOTAL"|translate}: {$rate}%</h2>
</div>
